find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets QUIET)
find_package(Qt6 REQUIRED COMPONENTS LinguistTools)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(PROJECT_SOURCES
    extension.cpp
    extension.h
    extensiondeclaration.h
    extensiondeclarationlist.cpp
    extensiondeclarationlist.h
    extensionfactory.h
    extensionmanager.cpp
    extensionmanager.h
    extensiontype.h
    extensionwindow.cpp
    extensionwindow.h
    extensionview.cpp
    extensionview.h
    toolbardeclaration.cpp
    toolbardeclaration.h
)

add_library(Extension STATIC ${PROJECT_SOURCES})

target_compile_definitions(Extension PRIVATE
)

target_include_directories(Extension PRIVATE
    ${PROJECT_SOURCE_DIR}/src/libs
)

target_link_libraries(Extension PRIVATE
    Qt6::Core
    Qt6::Gui
    Qt6::Widgets
)

#qt6_add_translations(Extension
#    TS_FILES extension_en_US.ts extension_zh_CN.ts)
